package net.contrend.system.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import net.contrend.system.form.MenuForm;

public class MenuFormMapper implements RowMapper {

    @Override
    public Object mapRow(ResultSet rs, int index) throws SQLException {
        MenuForm menu = new MenuForm();
        menu.setMenuId(rs.getString("menuid"));
        menu.setMenuName(rs.getString("menuname"));
        menu.setMenuUrl(rs.getString("menuurl"));
        menu.setParentId(rs.getString("parentid"));
        menu.setStatus(rs.getString("status"));
        menu.setOrderNo(rs.getInt("orderno"));
        menu.setRemark(rs.getString("remark"));
        return menu;
    }

}
